/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package entidades;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author Felipe
 */
@Entity
@Table (name = "CONFIGS_FTP")
public class ConfigFTP implements Serializable
{
    @Id
    @Column (name = "ID_CONFIG_FTP")
    @GeneratedValue (strategy = GenerationType.IDENTITY)
    private long id;
    
    @Column (name = "DIRECCION")
    private String direccion;
    
    @Column (name = "USER")
    private String user;
    
    @Column (name = "CLAVE")
    private String clave;
    
    @Column (name = "PUERTO")
    private int puerto;
    
    @Column (name = "DIRECTORIO")
    private String directorio;

    public ConfigFTP ()
    {
        
    }

    public ConfigFTP(String direccion, String user, String clave, int puerto, String directorio)
    {
        this.direccion = direccion;
        this.user = user;
        this.clave = clave;
        this.puerto = puerto;
        this.directorio = directorio;
    }
    
    public long getId()
    {
        return id;
    }

    public void setId(long id)
    {
        this.id = id;
    }

    public String getDireccion()
    {
        return direccion;
    }

    public void setDireccion(String direccion)
    {
        this.direccion = direccion;
    }

    public String getUser()
    {
        return user;
    }

    public void setUser(String user)
    {
        this.user = user;
    }

    public String getClave()
    {
        return clave;
    }

    public void setClave(String clave)
    {
        this.clave = clave;
    }

    public int getPuerto()
    {
        return puerto;
    }

    public void setPuerto(int puerto)
    {
        this.puerto = puerto;
    }

    public String getDirectorio()
    {
        return directorio;
    }

    public void setDirectorio(String directorio)
    {
        this.directorio = directorio;
    }
}
